﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iOak.Data.Resumes;
using iOak.Domain.Resumes;

namespace iOak.Business.Resumes
{
    public partial class ResumeDetailService
    {
        private static readonly ResumeDetailRepository resumeDetial = new ResumeDetailRepository("master");

        public List<ResumeDetail> GetListByResumeId(Guid resumeId)
        {
            return resumeDetial.GetListByResumeId(resumeId);
        }

        public void Create(ResumeDetail item)
        {
            resumeDetial.Create(item);
        }

        public ResumeDetail Retrieve(Guid resumeDetailId)
        {
            return resumeDetial.Retrieve(resumeDetailId);
        }

        public void Update(ResumeDetail item)
        {
            resumeDetial.Update(item);
        }

        public void Delete(Guid resumeDetailId)
        {
            resumeDetial.Delete(resumeDetailId);
        }

        public void DeleteByResumeId(Guid resumeId)
        {
            resumeDetial.DeleteByResumeId(resumeId);
        }

        public List<ResumeDetail> LoadAll()
        {
            return resumeDetial.LoadAll();
        }

        public ResumeDetail GetByResumeIdAndKey(Guid resumeId, String key)
        {
            return resumeDetial.GetByResumeIdAndKey(resumeId, key);
        }

        public List<ResumeDetail> GetListByCSV(Guid resumeId, Guid resumeTemplateId)
        {
            return resumeDetial.GetListByCSV(resumeId, resumeTemplateId);
        }
    }
}
